package com.hitqz.robot.api.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测姿态组
 */
@TableName(value = "patrol_item_mark")
@Schema(description = "巡检项标定数据")
public class PatrolItemMark {
    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @Schema(description = "巡检项id")
    @NotNull(message = "检测项id不能为空")
    private Integer patrolItemId;
    //图片地址
    @Schema(description = "图片地址")
    private String url;
    //像素坐标 未转化成测温区域坐标
    @Schema(description = "像素左上角x坐标")
    private Integer x1;
    @Schema(description = "像素左上角y坐标")
    private Integer y1;
    @Schema(description = "像素右下角x坐标")
    private Integer x2;
    @Schema(description = "像素右下角x坐标")
    private Integer y2;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPatrolItemId() {
        return patrolItemId;
    }

    public void setPatrolItemId(Integer patrolItemId) {
        this.patrolItemId = patrolItemId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getX1() {
        return x1;
    }

    public void setX1(Integer x1) {
        this.x1 = x1;
    }

    public Integer getY1() {
        return y1;
    }

    public void setY1(Integer y1) {
        this.y1 = y1;
    }

    public Integer getX2() {
        return x2;
    }

    public void setX2(Integer x2) {
        this.x2 = x2;
    }

    public Integer getY2() {
        return y2;
    }

    public void setY2(Integer y2) {
        this.y2 = y2;
    }
}
